Object: inputfield
The inputfield object is a custom type for use in Python scripts to represent an input field.
NOTE: All the properties of an input field are"read only". Attempting to write to any of these properties generates a runtime error.
Properties
|
Name |
Data type |
Description |
value |
int/double/string |
The value of the field. |
|
timestamp |
datetime.datetime |
The timestamp of the field. See the Important notes on field timestamps topic for details on timestamp format as well as upper and lower bounds on the timestamp. |
|
quality |
int |
The quality of the field. |
|
name |
string |
The name of the field. |
Methods
|
Name |
Return data type |
Description |
is_quality_good() |
boolean |
Returns True if the input field quality is good. Otherwise, returns False. |
|
is_quality_bad() |
boolean |
Returns True if the input field quality is bad. Otherwise, returns False. |
Accessing input fields
Input fields must be accessed via the inputs container.
Examples
The following examples illustrate checking input field quality.
Python: |
if inputs.MyInputField.is_quality_good(): # Take action because of good quality...
#or
if inputs.MyInputField.is_quality_bad(): # Take action because of bad quality...
|
Related topics: